package day06;

public class ArrayDemo {
    public static void main(String[] args) {
        int[] a = new int[]{22,33,44,55,66};









       /* int[] b = new int[6];
        System.arraycopy(a,0,b,0,5);
        //a:原数组
        //0：源数组的起始下标
        //b:目标数组
        //0：目标数组的起始下标
        //5：要复制的元素个数
        for (int i=0; i<b.length;i++){
            System.out.println(b[i]);

        }
        int[] c ={11,22,33,44,55,66,77};
        int[] h = new int[8];
        System.arraycopy(c,1,h,1,5);
        for (int i=0;i<h.length;i++){
            System.out.println(h[i]);
        }*/

    }
}
